<{include file="common/header.tpl"}>
<section id="spread_one" class="column">

        <h4 class="alert_info">欢迎使用 哇吖管理系统！</h4>


        <form method="" action="">
        <article class="module width_3_quarter">
        <header>
            <h3 class="tabs_involved ">全部推广活动</h3>
            <!--
            <select class="spread_tab fl">
              <option value ="1">渠道1</option>
              <option value ="2">渠道2</option>
              <option value ="3">渠道3</option>
              <option value ="4">渠道4444</option>
            </select>
            -->
        </header>
		<div class="tab_container">
			<div id="tab1" class="tab_content">
			<table class="tablesorter" cellspacing="0"> 
			<thead> 
				<tr> 
   					
    				<th>名称</th> 
    				<th>单价</th> 
    				<th>支付方式</th> 
    				<th>状态</th>
				</tr> 
			</thead> 
			<tbody>
				<{foreach from = $activities item = 'v'}> 
                    <{if $v.pay_type == 'CPS'}>
					<tr>
						<td><a href='/promotion/activity_detail/<{$v.id}>'><{$v.name}></a></td>
						<td><{$v.price}>%</td>
						<td><{$v.pay_type}></td>
						<td>
                        <{if $v.status == 1 }>
                        正常
                        <{elseif $v.status == 0 }>
                        审核中
                        <{else}>
                        关闭
                        <{/if}>
                        </td>
					</tr> 
                    <{else}>
					<tr>
						<td><a href='/promotion/activity_detail/<{$v.id}>'><{$v.name}></a></td>
						<td>￥<{$v.price/100|number_format:2}></td>
						<td><{$v.pay_type}></td>
						<td>
                        <{if $v.status == 1 }>
                        正常
                        <{elseif $v.status == 0 }>
                        审核中
                        <{else}>
                        关闭
                        <{/if}>
                        </td>
					</tr> 
                    <{/if}>
				<{/foreach}>
			</tbody> 
			</table>
			</div><!-- end of #tab1 -->
		</div><!-- end of .tab_container -->
		</article><!-- end of content manager article -->
		<div class="clear"></div>
	</section>			
<{include file="common/footer.tpl"}>
